<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="index.xhtml">
	<ui:define name="conteudo">
		<f:view>

			<h:form id="form">

				<p:growl id="msgs" />
				<p:panel header="Adicionar Reserva"
					style="max-width: 595px; min-width: 550px">
					<h:panelGrid columns="4" id="grid">

						<h:outputLabel value="Loja Origem: *" for="txt_lojaOrigem" />
						<h:selectOneMenu id="txt_lojaOrigem" disabled="true"
							value="#{ReservaBean.idLojaOrigem}">
							<f:selectItem itemValue="" itemLabel="Selecione" />
							<f:selectItems value="#{LojaBean.listarTodas}" />
						</h:selectOneMenu>

						<h:outputLabel value="Loja Destino: *" for="txt_lojaDestino" />
						<h:selectOneMenu id="txt_lojaDestino"
							value="#{ReservaBean.idLojaDestino}">
							<f:selectItem itemValue="" itemLabel="Selecione" />
							<f:selectItems value="#{LojaBean.listarTodas}" />
						</h:selectOneMenu>

						<h:outputLabel value="Produto: *" for="txt_Produto"></h:outputLabel>
						<h:selectOneMenu id="txt_Produto" value="#{ReservaBean.idProduto}">
							<f:selectItem itemValue="" itemLabel="Selecione" />
							<f:selectItems value="#{ProdutoBean.listaDeProduto}" />
						</h:selectOneMenu>

						<h:outputLabel value="Quantidade: *" for="txt_quantidade"></h:outputLabel>
						<p:inputText id="txt_quantidade" value="#{ReservaBean.qtdade}" />

						<br />
						<br />
						<br />
						<br />
						<p:commandButton id="btn_limpar" value="Limpar" type="reset" />
						<p:commandButton id="btn_incluir" value="Incluir" update="msgs"
							action="#{ReservaBean.incluirReserva}" />
						<p:commandButton id="btn_voltar" value="Voltar"
							action="#{ReservaBean.voltar}" ajax="false" />
					</h:panelGrid>
				</p:panel>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>
</html>